package com.coderly.onlinegallerysharingplatform.model.dao.mapper;

import com.coderly.onlinegallerysharingplatform.model.dao.entity.PictureLikeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coderly.onlinegallerysharingplatform.model.dao.entity.PictureShareDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 26788
* @description 针对表【t_picture_like(图片点赞表)】的数据库操作Mapper
* @createDate 2025-03-15 16:53:45
* @Entity com.coderly.onlinegallerysharingplatform.model.dao.entity.PictureLike
*/
@Mapper
public interface PictureLikeMapper extends BaseMapper<PictureLikeDO> {

    // 根据用户ID和图片ID列表查询点赞状态
    List<PictureLikeDO> listByUserAndPictures(@Param("userId") Long userId, @Param("pictureIds") List<Long> pictureIds);

}




